<html>

<head>
<meta name=标题 content="">
<meta name=关键词 content="">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Courier New";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Times;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@DengXian";}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
	{font-family:"\@Microsoft YaHei";}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:12.0pt;
	font-family:DengXian;}
a:link, span.MsoHyperlink
	{color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:#954F72;
	text-decoration:underline;}
code
	{font-family:Courier;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.0pt;
	font-size:12.0pt;
	font-family:DengXian;}
p.a, li.a, div.a
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:200%;
	font-size:12.0pt;
	font-family:"Microsoft YaHei";}
.MsoChpDefault
	{font-family:DengXian;}
 /* Page Definitions */
@page WordSection1
	{size:595.0pt 842.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'>

<div class=WordSection1 style='layout-grid:15.6pt'>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-size:14.0pt;line-height:200%;font-family:"Microsoft YaHei"'>vmstat</span></b></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>vmstat</span><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>指令用来显示虚拟内存使用状态，同时也可以显示进程、<span
lang=EN-US>cpu</span>活动情况。<span lang=EN-US>vmstat</span>报告有关进程、内存、分页、块<span
lang=EN-US>IO</span>、陷阱和<span lang=EN-US>CPU</span>活动的信息。生成的第一份报告给出了自上次重新启动以来的平均值。其他报告提供了长度延迟取样周期的信息。在这两种情况下，进程和内存报告都是瞬时的。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>此命令的适用范围：<span
lang=EN-US>RedHat</span>、<span lang=EN-US>RHEL</span>、<span lang=EN-US>Ubuntu</span>、<span
lang=EN-US>CentOS</span>、<span lang=EN-US>Fedora</span>、<span lang=EN-US>SUSE</span>、<span
lang=EN-US>openSUSE</span>。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
"Microsoft YaHei"'>、语法</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-a]  [-n]  [-t]  [-S
unit]  [delay [ count]]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-s]  [-n]  [-S unit]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-m]  [-n]  [delay [
count]]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-d]  [-n]  [delay [
count]]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-p disk partition]  [-n]
 [delay [ count]]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-f]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat  [-V]</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
"Microsoft YaHei"'>、选项列表</span></b></p>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>选项</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border:solid windowtext 1.0pt;
  border-left:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-a</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示使用和非使用的虚拟内存状态</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-f</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示开机之后<span
  lang=EN-US>fork</span>的使用情况</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-t</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>增加时间戳到输出</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-m</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示<span
  lang=EN-US>slab</span>信息</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-n</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示一次头信息，而不是间隔性的显示</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-d</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示磁盘使用情况<span
  lang=EN-US>       </span></span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-w</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-w</span><span style='font-family:"Microsoft YaHei"'>增大了大内存的字段宽度。</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-p</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-p</span><span style='font-family:"Microsoft YaHei"'>后面跟着一些分区名称以进行详细统计<span
  lang=EN-US>(</span>所需的<span lang=EN-US>2.5.70</span>或更高内核<span lang=EN-US>)</span></span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-S</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置容量单位。可是<span
  lang=EN-US>k</span>、<span lang=EN-US>K</span>、<span lang=EN-US>m</span>、<span
  lang=EN-US>M</span>，分别代表<span lang=EN-US>1000</span>，<span lang=EN-US>1024</span>，<span
  lang=EN-US>1000000</span>，<span lang=EN-US>1048576</span>字节</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-V</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示版本信息</span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
"Microsoft YaHei"'>、<span lang=EN-US>VM</span>模式的字段描述</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>1</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>Proc</span></b></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>r</span><span
style='font-family:"Microsoft YaHei"'>：等待运行时的进程数；<span lang=EN-US>b</span>：不间断睡眠中的进程数。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>2</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>Memory</span></b></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>swpd</span><span
style='font-family:"Microsoft YaHei"'>：使用的虚拟内存量；<span lang=EN-US>free</span>：空闲内存量；<span
lang=EN-US>buff</span>：<span lang=EN-US>buffer</span>缓冲使用内存量；<span lang=EN-US>cache</span>：<span
lang=EN-US>chace</span>缓存使用内存量；<span lang=EN-US>incat</span>：不活动的内存量；<span
lang=EN-US>active</span>：活动的内存量；</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>3</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>Swap</span></b></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>si</span><span
style='font-family:"Microsoft YaHei"'>：从磁盘交换的内存量<span lang=EN-US>(/s)</span>；<span
lang=EN-US>so</span>：交换到磁盘的内存量<span lang=EN-US>(/s)</span>。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>4</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>IO</span></b></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>bi</span><span
style='font-family:"Microsoft YaHei"'>：从块设备<span lang=EN-US>(</span>块<span
lang=EN-US>/s)</span>接收的块；<span lang=EN-US>bo</span>：发送到块设备<span lang=EN-US>(</span>块<span
lang=EN-US>/s)</span>的块。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>5</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>System</span></b></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>in</span><span
style='font-family:"Microsoft YaHei"'>：每秒中断的次数，包括时钟。；<span lang=EN-US>cs</span>：每秒的上下文切换数。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>6</span><span
style='font-family:"Microsoft YaHei"'>）<b><span lang=EN-US>CPU</span></b></span></p>

<p class=MsoNormal><span lang=EN-US style='font-family:"Microsoft YaHei"'>us</span><span
style='font-family:"Microsoft YaHei"'>：运行非内核代码的时间。<span lang=EN-US>(</span>用户时间，包括美好的时间<span
lang=EN-US>)</span>；<span lang=EN-US>sy</span>：运行内核代码的时间。<span lang=EN-US>(</span>系统时间<span
lang=EN-US>)</span>；<span lang=EN-US>id</span>：空闲的时间（在<span lang=EN-US>Linux2.5.41</span>之前，这包括<span
lang=EN-US>IO-</span>等待时间）；<span lang=EN-US>wa</span>：等待<span lang=EN-US>IO</span>的时间（在<span
lang=EN-US>Linux2.5.41</span>之前，包含在空闲中）；<span lang=EN-US>st</span>：从虚拟机上偷来的时间（在<span
lang=EN-US>Linux 2.6.11</span>之前，未知）。</span></p>

<p class=MsoNormal><span lang=EN-US style='font-family:"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>4</span></b><b><span
style='font-family:"Microsoft YaHei"'>、磁盘模式的字段描述</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>Reads</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>total</span><span style='font-family:
"Microsoft YaHei"'>：成功完成读取总数；<span lang=EN-US>merged</span>：分组读取<span
lang=EN-US>(</span>导致一个<span lang=EN-US>I/O)</span>；<span lang=EN-US>sectors</span>：成功读取扇区；<span
lang=EN-US>ms</span>：读取的毫秒。</span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>Writes</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>total</span><span style='font-family:
"Microsoft YaHei"'>：成功完成写入总数；<span lang=EN-US>merged</span>：分组写入<span
lang=EN-US>(</span>导致一个<span lang=EN-US>I/O)</span>；<span lang=EN-US>sectors</span>：成功写入扇区；<span
lang=EN-US>ms</span>：写入的毫秒。</span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>3</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>IO</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>cur</span><span style='font-family:"Microsoft YaHei"'>：<span
lang=EN-US>I/O</span>正在进行中；<span lang=EN-US>s</span>：<span lang=EN-US>IO</span>的秒数。</span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>5</span></b><b><span
style='font-family:"Microsoft YaHei"'>、磁盘分区模式的字段描述</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>reads</span><span style='font-family:
"Microsoft YaHei"'>：向此分区发出的读取总数；<span lang=EN-US>read sectors</span>：分区读取扇区总数；<span
lang=EN-US>writes</span>：向此分区发出的写入总数；<span lang=EN-US>request writes</span>：分区写入扇区总数。</span></p>

<p class=MsoNormal><span lang=EN-US style='font-family:"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>6</span></b><b><span
style='font-family:"Microsoft YaHei"'>、<span lang=EN-US>slab</span>模式的字段</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-family:"Microsoft YaHei"'>cache</span><span style='font-family:
"Microsoft YaHei"'>：<span lang=EN-US>cache</span>的名字；<span lang=EN-US>num</span>：当前活动对象的数量；<span
lang=EN-US>total</span>：可用的对象总数；<span lang=EN-US>size</span>：每个对象的大小；<span
lang=EN-US>pages</span>：至少有一个活动对象的页数；<span lang=EN-US>totpages</span>：分配页面总数；<span
lang=EN-US>pslab</span>：每个<span lang=EN-US>slab</span>的页数。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>7</span></b><b><span style='font-family:
"Microsoft YaHei"'>、说明</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>vmstat</span><span
style='font-family:"Microsoft YaHei"'>不需要特殊权限。这些报告旨在帮助识别系统瓶颈。<span lang=EN-US>Linux
vmstat</span>并不将自己视为一个正在运行的进程。所有<span lang=EN-US>Linux</span>块当前为<span
lang=EN-US>1024</span>字节。旧内核可以将块报告为<span lang=EN-US>512</span>字节、<span
lang=EN-US>2048</span>字节或<span lang=EN-US>4096</span>字节。因为<span lang=EN-US>prps
3.1.9</span>，<span lang=EN-US>vmstat</span>允许您在默认模式下选择单位<span lang=EN-US>(k</span>，<span
lang=EN-US>K</span>，<span lang=EN-US>m</span>，<span lang=EN-US>M)</span>默认为<span
lang=EN-US>K(1024</span>字节<span lang=EN-US>)</span>。<span lang=EN-US>vmstat</span>使用<span
lang=EN-US>slabinfo 1.1</span>修补程序</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>8</span></b><b><span style='font-family:
"Microsoft YaHei"'>、实例</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>1</span><span
style='font-family:"Microsoft YaHei"'>）显示虚拟内存使用情况 </span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]# <b>vmstat -a</b></span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>procs -----------memory---------- ---swap-- -----io----
  --system-- -----cpu-----</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> r  b   swpd   free  inact active   si   so    bi    bo   in  
  cs us sy id wa st</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 0  0      0 336892 371548 811616    0    0     5     5   97  
  47  0  0 100  0  0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>You have new mail in /var/spool/mail/root</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]# </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>2</span><span
style='font-family:"Microsoft YaHei"'>）显示开机后<span lang=EN-US>fork</span>使用状况</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]#<b> vmstat –f            //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian;color:black'>显示开机后</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>fork</span></b></code><code><b><span style='font-size:10.0pt;
  line-height:200%;font-family:DengXian;color:black'>次数</span></b></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>        21739 forks</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]#  </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>3</span><span
style='font-family:"Microsoft YaHei"'>）显示磁盘信息</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]#<b> vmstat –d             //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian;color:black'>显示磁盘信息</span></b></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>disk- ------------reads------------
  ------------writes----------- -----IO------</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>       total merged sectors      ms  total merged sectors     
  ms    cur    sec</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram0       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram1       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram2       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram3       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram4       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram5       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram6       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram7       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram8       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram9       0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram10      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram11      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram12      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram13      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram14      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>ram15      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop0      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop1      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop2      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop3      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop4      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop5      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop6      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>loop7      0      0       0       0      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>sr0       56     45     404      30      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>sda    43369  21298 1817706   37136  94895 126742 1685748 
  129957      0    114</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>dm-0   63405      0 1808002   66652 210875      0 1685664 
  552283      0    114</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>dm-1     322      0    2576     317      0      0       0      
  0      0      0</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ntop-4.0.1]# </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     </span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal align=center style='text-align:center;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>Copyright@david 
zhytwj2018@163.com</span></p>

</div>

</body>

</html>
